package com.gec.obwiki.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gec.obwiki.domain.pojo.Content;
import com.gec.obwiki.service.ContentService;
import com.gec.obwiki.mapper.ContentMapper;
import org.springframework.stereotype.Service;

/**
* @author adim
* @description 针对表【content】的数据库操作Service实现
* @createDate 2025-06-23 11:12:37
*/
@Service
public class ContentServiceImpl extends ServiceImpl<ContentMapper, Content>
    implements ContentService{


    @Override
    public String findContent(Long id) {
        Content content = this.baseMapper.selectById(id);
        if(content !=null){
            return content.getContent();
        }
        return null;
    }
}




